<template>
  <el-dialog
    :show-close="true"
    v-bind="$attrs"
    :close-on-click-modal="false"
    :destroy-on-close="true"
    :before-close="diaClose"
    append-to-body
    :center="true"
  >
    <slot></slot>
  </el-dialog>
</template>

<script>
export default {
  // :visible.sync="dialogVisible"
  //     v-if="dialogVisible"
  //     width="500px"
  //     @diaClose="diaClose"
  methods: {
    diaClose () {
      this.$emit('diaClose')
    }
  }
}
</script>

<style lang="scss" scoped></style>
